/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package trackmsg;

import base.TrackNode.Rule;
import base.WaveEnvironment;

/**
 *
 * @author Tue
 */
public class CreateMsg extends TrackCtrlMsg{
   // private String parentTrack;
    private Rule rule;
    private String enclosedWave;
    private String suspendedTail;
    private WaveEnvironment waveEnv;
    public CreateMsg(Rule rule, String wave, String tail, WaveEnvironment env){
        this.rule = rule;
        this.enclosedWave = wave;
        this.suspendedTail = tail;
        this.waveEnv = env;
    }

    public Rule getRule() {
        return rule;
    }

    public String getTail() {
        return suspendedTail;
    }

    public String getEnclosedWave() {
        return enclosedWave;
    }

    public WaveEnvironment getWaveEnv() {
        return waveEnv;
    }
    
    public Type getType(){
        return Type.CREATE;
    }

    @Override
    public String toString() {
        return "MESSAGE: " + getType() + " " + getRule() + " " + getEnclosedWave() +
                " " + getTail() + " " + getWaveEnv();
    }
}
